package socket.thread;

/**
 *
 * Netty中，通讯的双方建立连接后，会把数据按照ByteBuf的方式进行传输，
 * 例如http协议中，就是通过HttpRequestDecoder对ByteBuf数据流进行处理，转换成http的对象。
 *
 */
public class main {
    private int port;

    public main(int port) {
        this.port = port;
    }

    public void run() throws Exception {

    }

    public static void main(String[] args) throws Exception {
//        new main(5500).run();
        Bluetooth bluetooth = new Bluetooth();
        Myweb myweb = new Myweb();

        Thread th1 = new Thread(bluetooth);
        Thread th2 = new Thread(myweb);
        th1.start();
        th2.start();

    }
}
